package www.lagou.entity;

import java.io.Serializable;
import java.math.BigDecimal;

public class Employee implements Serializable {
    //id
    private int id;
    //员工姓名
    private String name;
    //员工年龄
    private double age;
    //员工性别
    private String sex;
    //薪水
    private double salary;
    //入职日期
    private String empDate;
    //所属部门ID
    private int deptId;
    //部门详细信息
    private Dept dept;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getAge() {
        return age;
    }

    public void setAge(double age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getEmpDate() {
        return empDate;
    }

    public void setEmpDate(String empDate) {
        this.empDate = empDate;
    }

    public int getDeptId() {
        return deptId;
    }

    public void setDeptId(int deptId) {
        this.deptId = deptId;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    @Override
    public String toString() {
        return "员工表{" +
                "员工id=" + id +
                ", 姓名='" + name + '\'' +
                ", 年龄=" + age +
                ", 性别='" + sex + '\'' +
                ", 薪水=" + salary +
                ", 入职日期='" + empDate + '\'' +
                ", 部门=" + deptId +
                '}';
    }
}
